package org.dromara.crawler.config;

import org.dromara.crawler.constant.EdgeConstant;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Shup
 * @date 2025/8/12 9:08
 */
@Configuration
public class EdgeConfig {

    public static final Map<String, EdgeConstant> edgeConstantMap = new HashMap<>();

    @PostConstruct
    public void init() {
        for (EdgeConstant constant : EdgeConstant.values()) {
            edgeConstantMap.put(constant.getEname(), constant);
        }
        System.out.println("EdgeConfig 初始化完成: " + edgeConstantMap);
    }




}
